﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="PorJogador.aspx.cs" Inherits="PESWeb.Pages.Estatisticas.PorJogador" %>

<%@ Import Namespace="Campeonato.Model" %>
<%@ Import Namespace="PES.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="htmlHeaderContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    Estatísticas por Jogador
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="updPanelDdlRodadas" runat="server">
        <ContentTemplate>
            <div class="pagecontent">
                Escolha um jogador:
                <asp:DropDownList ID="ddlJogadores" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlJogadores_SelectedIndexChanged">
                </asp:DropDownList>
                <br />
                <br />
                <b><asp:Label ID="lblTime" runat="server" /></b>
                <br />
                <asp:GridView ID="gvJogadoresVirtuais" runat="server" CssClass="rankingGrid" AllowSorting="false"
                    AutoGenerateColumns="false" AllowPaging="true" Width="400px" OnPageIndexChanging="gvJogadoresVirtuais_PageIndexChanging"
                    PageSize="15">
                    <Columns>
                        <asp:TemplateField HeaderText="Nome">
                            <ItemTemplate>
                                <asp:Label ID="lblNomeJog" runat="server" Text='<%# Eval("Nome") %>' />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="G">
                            <ItemTemplate>
                                <asp:Label ID="lblGolsMarcados" runat="server" Text='<%# Eval("TotalGolsMarcados") %>' />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="CV">
                            <ItemTemplate>
                                <asp:Label ID="lblTotalCartoesVermelhos" runat="server" Text='<%# Eval("TotalCartoesVermelhos") %>' />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="CA">
                            <ItemTemplate>
                                <asp:Label ID="lblTotalCartoesAmarelos" runat="server" Text='<%# Eval("TotalCartoesAmarelos") %>' />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="S">
                            <ItemTemplate>
                                <asp:Image ID="ImgActive" runat="server" Width="10px" Height="10px" Visible='<%# ((JogadorVirtual)Container.DataItem).Suspenso%>' ImageUrl="~/images/card_red.png" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="legenda" id="div_legenda">
        <div id="legenda-tabela-classificacao">
            <span class="info-faixa-1">Legenda</span>
        </div>
        <div id="observacoes-tabela-classificacao" class="observacoes">
            <span><strong>G</strong> gols marcados </span><strong>CV</strong> cartões vermelhos
            <span><strong>CA</strong> cartões amarelos <strong>S</strong> indica se o jogador está
                suspenso </span>
            <p>
            </p>
        </div>
    </div>
</asp:Content>
